(
  ($) ->
    class MyPlugin
      constructor: (element, options) ->
        @$element = $(element)
        @options = $.extend({}, @$element.data(), options)

      run: (option) ->
        # your code

    $.fn.myplugin = (options)->
      return $.each ->
        plugin = new MyPlugin(@, options)
        plugin.run()


)(window.jQuery)
